import { createApp } from 'vue'
// 引入全局样式
import '@/styles/index.scss'
// 引入 element 组件库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
import pinia  from './store'
// @ts-ignore
import 'virtual:svg-icons-register'
// 引入路由
import router from './router'
import  gloalCompinent from './components/index'
// 获取应用实例对象
const app= createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})
//引入自定义插件:注册整个项目的全局组件
// 安装自定义插件
app.use(gloalCompinent)
app.use(pinia)
app.use(router)
// 将应用挂载在挂载点上
app.mount('#app')
